/*
 * COPYRIGHT. HSBC HOLDINGS PLC 2016. ALL RIGHTS RESERVED.
 * 
 * This software is only to be used for the purpose for which it has been
 * provided. No part of it is to be reproduced, disassembled, transmitted,
 * stored in a retrieval system nor translated in any human or computer
 * language in any way or for any other purposes whatsoever without the
 * written consent of HSBC Holdings plc.
 */
package com.pactera.integral.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.pactera.integral.common.repository.GenericRepository;
import com.pactera.integral.entity.User;



/**
 * @type_name UserDao
 */
@Repository("userDao")
public interface UserDao extends GenericRepository<User, String>{

    /**
     * @param string
     * @return
     */
    User findByName(String username);
    
    User findByUserId(String userId);
    
    User findByStaffId(String staffId);
    
    User findByUserIdAndStaffId(String userId , String staffId);

    List<User> findByDepartmentCode(String departmentCode);
}
